import { useState,useEffect } from "react"
import useFormTime from './UseFormatTime'
function CusTomHooks(){
   const {formatDate,setTimeStr} =  useFormTime(1734080551825)
   const {formatDate:formatDate1} =  useFormTime(1454080551825)
//    console.log('obj', formatDate1);
// const { data, loading, error} = useRequest('http://baidu.com/testapi')
return (
    <div>
    {formatDate}
    {/* <p>{formatDate1}</p> */}
    <button onClick={()=>{
    setTimeStr(1054080551825)
    }}>切换时间</button>
    </div>
    // <table soure={data}></table>
)
}


export default CusTomHooks